package com.hivekion.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.hivekion.common.entity.BaseEntity;
import lombok.Data;

/**
 * 字典数据表 sys_dict_data
 *
 * @author sutao
 */
@Data
@TableName("sys_dict_data")
public class SysDictData extends BaseEntity {
      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("字典分类")
      private String dictCode;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 4)
      @ColumnComment("字典排序")
      private int sortCode;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("字典标签")
      private String dictLabel;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("字典键值")
      private String dictValue;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("字典类型")
      private String dictType;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 250)
      @ColumnComment("样式属性（其他样式扩展）")
      private String cssClass;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 250)
      @ColumnComment("表格字典样式")
      private String listClass;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 4)
      @ColumnComment("是否默认（0是 1否)")
      @DefaultValue("0")
      private Integer isDefault;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 4)
      @ColumnComment("状态（0正常 1停用)")
      @DefaultValue("0")
      private Integer status;
}
